package com.lc.sell.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 龙晨
 * @since 2022-02-01
 */
@Getter
@Setter
@TableName("dc_product")
@ApiModel(value = "Product对象", description = "")
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("商品id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("是否出售（0-出售 1-禁售）")
    @TableField("is_sell")
    private Integer isSell;

    @ApiModelProperty("价格")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty("商品图片")
    @TableField("image")
    private String image;

    @ApiModelProperty("库存")
    @TableField("stock")
    private Integer stock;

    @ApiModelProperty("商品名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("商品描述")
    @TableField("content")
    private String content;

    @ApiModelProperty("店家id")
    @TableField("mid")
    private Integer mid;

    @ApiModelProperty("销售量")
    @TableField("sold")
    private String sold;

    @ApiModelProperty("创建时间")
    @TableField("createTime")
    private String createTime;
}
